package com.xebest.web.mapper.read;

import com.xebest.web.model.XeVenAfterSaleDetailEntity;
import com.xebest.web.view.XeVenRejectRefundDetailView;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author chenjing
 */
public interface XeVenAfterSaleDetailReadMapper {

    /**
     * 根据售后单号查询售后单明细信息
     *
     * @author chenjing
     */
    List<XeVenAfterSaleDetailEntity> queryAfterSaleDetailList(@Param("afterSalesCode") String afterSalesCode);

    /**
     * 根据订单号查询该订单下商品的已退数量和已退金额
     *
     * @author chenjing
     */
    List<XeVenRejectRefundDetailView> queryRejectRefundDetail(@Param("orderId") String orderId, @Param("userCode") String userCode, @Param("afterSaleCode") String afterSaleCode);

    /**
     * 根据售后单单号列表查询对应的售后单明细信息
     *
     * @author chenjing
     */
    List<XeVenAfterSaleDetailEntity> queryAfterSaleDetailListByCodes(@Param("formCodes") String[] formCodes, @Param("userCode") String userCode);

}
